<%@ page import="com.devicemantra.coordinate.dataobjects.*,java.util.*,com.google.appengine.api.datastore.KeyFactory" %>
<HTML>
	<head>
	<link href="css/main.css" rel="stylesheet" type="text/css">
	<link href="css/top.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.corner.js"></script>
	<script type="text/javascript">
	
</script>
	
	</head>
	<body onload="if (self != top) top.location = self.location">
	<div id="logo"><img height=96 width=96 src="icons/uae.png" /></div>
	<div id=body_top>
	<TABLE>
	<TR>
	<TH colspan=5>
		<TD><IMG SRC = "images/coordinate.png">
			<BR><br><font face=verdana size=1 color=white><i>Simplifying digital communication !</i></font></TD>
	</TH>
	<TH>
	<TD><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
					
				
			</TH>
			

		</TR>
		
	</TABLE>
	
	</div>	<br>
	<BR><BR>

<TABLE ALIGN=CENTER>
<tr>
<TD>
<div id=box>
<FORM name=form1 action=DoLogin method=post>
<br>

<!--  Login name:  &nbsp; <INPUT name=login_name  ><BR> -->
Username:<select name=login_name>
<option value="">Please Select a User </option>
<optgroup label="Super Users">
<option value="SUPER_ADMIN">SUPER_ADMIN</option>
</optgroup>
<optgroup label="Department Users">
<%
	List<CDepartment> lDeptList = CDepartmentFactory.getAllDepartments();
	for( int lCount = 0; lCount < lDeptList.size(); lCount++)
	{
		CDepartment lDept = lDeptList.get(lCount);
		out.print("<option value=\"" + lDept.getDepartmentName() + "\" >" + lDept.getDepartmentName() +   "</option>");
	}
	

%>
</select>

</td>
</tr>
<tr><td>
Password:<INPUT type=password name=password value=""> 
<br></br></td></tr>
<tr><td align=center><INPUT TYPE="SUBMIT" VALUE=" Login "></td></tr>
</FORM>
</div>
<tr><td>
<%
		if(request.getSession().getAttribute("login_err_mesg") != null )
		{
			out.print("<p><font color=red>" + request.getSession().getAttribute("login_err_mesg") + "</font></p>");
		}
%>
</td></tr>
</TABLE>



</BODY>
</HTML>



